import { createSSRApp } from 'vue'
import App from '@/App.vue'
import store from '@/store'
import request from '@/plugins/request'

export function createApp() {
  const app = createSSRApp(App)
  app.use(store)
  app.config.globalProperties.request = request

  return {
    app,
  }
}
